scala 基礎二 scala 方法的定義和使用 1.scala的方法定義 scala的方法定義格式 def 方法名(參數名:參數類型):返回值類型={ //scala return 字段可以省略,最 ...